package com.example.demo.entity.pojo;

import java.math.BigDecimal;
import java.util.Date;
import java.io.Serializable;

/**
 * 学生答题记录表(HomeworkAnswer)实体类
 *
 * @author makejava
 * @since 2025-07-13 17:30:30
 */
public class HomeworkAnswer implements Serializable {
    private static final long serialVersionUID = -59070622164418124L;

    /**
     * 答题记录ID
     */
    private Integer id;

    /**
     * 提交记录ID
     */
    private Integer submissionId;

    /**
     * 题目ID
     */
    private Integer questionId;

    /**
     * 学生答案
     */
    private String studentAnswer;

    /**
     * 是否正确：0=错误，1=正确
     */
    private Integer isCorrect;

    /**
     * 得分
     */
    private BigDecimal score;

    /**
     * 创建时间
     */
    private Date createTime;

    // Getters and Setters
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getSubmissionId() {
        return submissionId;
    }

    public void setSubmissionId(Integer submissionId) {
        this.submissionId = submissionId;
    }

    public Integer getQuestionId() {
        return questionId;
    }

    public void setQuestionId(Integer questionId) {
        this.questionId = questionId;
    }

    public String getStudentAnswer() {
        return studentAnswer;
    }

    public void setStudentAnswer(String studentAnswer) {
        this.studentAnswer = studentAnswer;
    }

    public Integer getIsCorrect() {
        return isCorrect;
    }

    public void setIsCorrect(Integer isCorrect) {
        this.isCorrect = isCorrect;
    }

    public BigDecimal getScore() {
        return score;
    }

    public void setScore(BigDecimal score) {
        this.score = score;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
